/****
 * Copyright (C) 2006 dNux Team
 *                                                            ****
 * This program is free software; you can redistribute it and/or *
 * modify under the terms of the GNU General Public License as   *
 * published by the Free Software Foundation;                    *
 * either version 2 of the License.                              *
 *                                                               *
 * This program is distributed in the hope that it will be       *
 * useful, but WITHOUT ANY WARRANTY; without even the implied    *
 * warranty of without even the implied waranty of               *
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.          *
 * See the GNU General Public License for more details.          *
 *                                                               *
 * You should have received a copy of the                        *
 * GNU General Public License                                    *
 * along with this program; if not, write to the                 *
 * Free Software Foundation, Inc.,                               *
 * 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA. *
 *                                                               *
 ****                                                         ****/

void
bool_true(d_check_t *check)
{
  d_bool_t boolean = d_true;
  if (boolean) {
    d_check_add(check, D_CHECK_OK, "bool::true => d_true can be used with if.");
  } else {
    d_check_add(check, D_CHECK_ERROR, "bool::true => d_true cannot be user with if.");
  }
}


void
bool_false(d_check_t *check)
{
  d_bool_t boolean = d_false;
  if ( ! boolean ) {
    d_check_add(check, D_CHECK_OK, "bool::false => d_false can be used with if.");
  } else {
    d_check_add(check, D_CHECK_ERROR, "bool::false => d_false cannot be used with if.");
  }
}

void
bool_tests(d_check_t *check)
{
  fprintf(stdout, ">> bool_tests <<\n");
  bool_true(check);
  bool_false(check);
  fprintf(stdout, "\n");
}

